//
//  BLViewController.h
//  ITC_iOS
//
//  Created by iBenz on 2018/8/25.
//  Copyright © 2018年 Benz.L. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BLViewController : UIViewController
@property(nonatomic) BOOL                                       needToHideNavigationBar;
@property(nonatomic, readonly) UIButton                         *leftBarButton;
@property(nonatomic, readonly) UIButton                         *rightBarButton;
@property(nonatomic, readonly) UIScreenEdgePanGestureRecognizer *screenEdgePanGestureRecognizer;

- (void)popNavigationViewController;

/**
 @brief 监听app运行周期事件
 */
- (void)enableApplicationRunCycleEvents:(BOOL)enable;
/**
 @brief app运行周期事件回调 @note 调用enableApplicationRunCycleEvents:并传YES才有效
 Override if need, default is implement nothing
 */
- (void)applicationWillResignActive:(UIApplication *)application;
- (void)applicationDidEnterBackground:(UIApplication *)application;
- (void)applicationWillEnterForeground:(UIApplication *)application;
- (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillTerminate:(UIApplication *)application;

@end


typedef enum {
    PullRefreshNone = 0,
    PullRefreshDown = 1<<0,
    PullRefreshUp   = 1<<1
}PullRefresh;
